home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / parted / gnu.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-03-16  |  1.4 KB  |  45 lines

  1. /*
  2.     libparted - a library for manipulating disk partitions
  3.     Copyright (C) 2001, 2007 Free Software Foundation, Inc.
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 3 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17. */
  18.  
  19. #ifndef PED_GNU_H_INCLUDED
  20. #define PED_GNU_H_INCLUDED
  21.  
  22. #include <parted/parted.h>
  23.  
  24. #include <hurd/store.h>
  25.  
  26. #define GNU_SPECIFIC(dev)    ((GNUSpecific*) (dev)->arch_specific)
  27.  
  28. typedef    struct _GNUSpecific    GNUSpecific;
  29.  
  30. struct _GNUSpecific {
  31.     struct store*    store;
  32.     int consume;
  33. };
  34.  
  35. extern PedArchitecture ped_gnu_arch;
  36.  
  37. /* Initialize a PedDevice using SOURCE.  The SOURCE will NOT be destroyed;
  38.    the caller created it, it is the caller's responsilbility to free it
  39.    after it calls ped_device_destory.  SOURCE is not registered in Parted's
  40.    list of devices.  */
  41. PedDevice* ped_device_new_from_store (struct store *source);
  42.  
  43. #endif /* PED_GNU_H_INCLUDED */
  44.  
  45.